package com.quan.system.async;

import com.quan.system.entity.SysLog;
import com.quan.system.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class LogServiceAsync {

    @Autowired
    private SysLogService service;

    @Async
    public void saveLog(SysLog entity) {

        this.service.save(entity);

    }

}
